<div class="modal-header">
    <button type="button" id="header_cancel" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
    <h5 class="modal-title">通话录音</h5>
</div>

<div class="modal-body">
    <div class="row">
        <div class="col-sm-12">
            <div class="row">

                <div class="form-group">
                    <label for="cdr_record" class="col-sm-2 control-label">通话录音:</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">
                            <audio id="cdr_record" controls autoplay>
                                <source src="{$Think.config.cc.cc_api_url}/index.php?m=Crm&c=Cdr&a=downloadRec&uniqueid={$uniqueid}&accountcode={$accountcode}&inner_exten={$inner_exten}" type="audio/mp3">
                            </audio>
                        </p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-md-offset-2 col-sm-6 col-md-6">
                        <button class="btn btn-default" id="btn-cancel" type="button"><i class="fa fa-times"></i> 关闭</button>
                        <a class="btn btn-link text-success" target="_blank" href="{$Think.config.cc.cc_api_url}/index.php?m=Crm&c=Cdr&a=downloadRec&uniqueid={$uniqueid}&accountcode={$accountcode}&inner_exten={$inner_exten}"><i class="fa fa-download"></i> 下载录音</a>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

<script>
$(document).ready(function() {
    bootbox.setLocale('zh_CN');

    var player = new MediaElementPlayer('cdr_record', {
        pluginPath: "/public/admin/plugins/mediaelement-4.2.9/",
        translations:['zh-cn'],
        startLanguage: 'zh-cn',
        loop: false,
        startVolume: 1.0
    });



});
</script>
